package com.heima.model.mappers.wemedia;

import com.heima.model.media.dtos.WmMaterialListDto;
import com.heima.model.media.pojos.WmMaterial;

import java.util.Collection;
import java.util.List;

public interface WmMaterialMapper {
    int insert(WmMaterial record);

    WmMaterial selectByPrimaryKey(Integer id);

    int deleteByPrimaryKey(Integer id);

    List<WmMaterial> findListByUidAndStatus(WmMaterialListDto dto, Long uid);

    int countListByUidAndStatus(WmMaterialListDto dto, Long uid);

    int updateStatusByUidAndId(Integer id, Long userId, Short type);

    List<WmMaterial> findMaterialByUidAndimgUrls(Long uid,Collection<Object> values);
}
